#ifndef FRIENDQUEST_H
#define FRIENDQUEST_H

#include <QWidget>
#include <QTcpSocket>
#include "userinfo.h"
#include "friendquestitem.h"
#include <QMessageBox>
#include "client.h"
#include "control.h"


extern QString serverIp;
extern int serverPort;
extern control cont;


namespace Ui {
class friendquest;
}

class friendquest : public QWidget
{
    Q_OBJECT

public:
    explicit friendquest(QWidget *parent = 0);

    friendquest(int id, QWidget* parent = 0);

    ~friendquest();

    void getRequests();

private:
    Ui::friendquest *ui;

    QTcpSocket* tcpSocket;
    userinfo user;
};

#endif // FRIENDQUEST_H
